package com.lsc.www.day09.hm;

import java.util.Scanner;

public class s5 {

    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.print("请输入一个正整数：");
        int num = input.nextInt();
        System.out.print(num + "=");
        if (num == 1) {
            System.out.println(1);
        }
        for (int i = 2; i <= num; i++) {
            //80 true
            //40 true
            //20 true
            //10 true
            if (num % i == 0 && num != i) {
                //2*
                //2*
                //2*
                //2*
                System.out.print(i + "*");
                //40 = 80/2
                //20 = 40/2
                //10 = 20/2
                //5 = 10/2
                num = num / i;

                i = 1;
            }
            //5=5
            if (i == num) {
                System.out.println(num);
                break;
            }
        }
    }
}

